import 'package:flutter/material.dart';
import 'package:lib_ui/lib_ui.dart';

abstract class CommonStatelessPage extends StatelessWidget {
  String title();

  Widget body();

  List<Widget>? actions();

  Widget? leading();

  const CommonStatelessPage();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: TransparentAppBar(
        title: title(),
        actions: actions(),
        leading: leading(),
      ),
      body: body(),
    );
  }
}
